import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 末并通知单
 * */
// 创建

// 更新
export const reportProductionHomeLayoutUpdate = (data) => putRequest('/report/production/home/layout/update', data);

// 获得
export const reportProductionHomeLayoutGet = (params) => getRequest('/report/production/home/layout/get', params);

export const reportProductionHomeDataMachineYieldTop = (params) => getRequest('/report/production/home/data/machine-yield-top', params);
export const reportProductionHomeData = (params) => getRequest('/report/production/home/data', params);
export const reportProductionHomeDataAll = (params) => getRequest('/report/production/home/data/all', params);

// 机台效率排行
export const reportProductionHomeDataMachineRunningEfficiencyTop = (params) => getRequest('/report/production/home/data/machine-running-efficiency-top', params);
// 品种产量及盈亏
export const reportProductionHomeDataProductYield = (params) => getRequest('/report/production/home/data/product-yield', params);
// 当班产量及盈亏
export const reportProductionHomeDataProductCurrentShiftYield = (params) => getRequest('/report/production/home/data/product-current-shift-yield', params);

export const reportProductionHomeDataMachineRunStatus = (params) => getRequest('/report/production/home/data/machine-run-status', params);
export const productionPrdNoticeMachineChangeGetProcessOpenNum = (params) => getRequest('/production/prd-notice-machine-change/get-process-open-num', params);
export const productionPrdReportGetProcessQty = (params) => getRequest('/production/prd-report/get-process-qty', params);
export const machineManagerMachineGetAvgHumTem = (params) => getRequest('/machinemanager/machine/get-avg-hum-tem', params);

export const productionPrdReportProcessRealTimeData = (params) => postRequest('/production/prd-report/process-real-time-data', params);
export const workforceManagementScheduleEmpGetDataByProcess = (params) => getRequest('/workforcemanagement/schedule-emp/get-data-by-process', params);

// 机台停机时长排行
export const reportProductionHomeDataMachineStopTimeTop = (params) => getRequest('/report/production/home/data/machine-stop-time-top', params);
// 机台落纱时长排行
export const reportProductionHomeDataMachineDoffTimeTop = (params) => getRequest('/report/production/home/data/machine-doff-time-top', params);

export const machineManagerMachineGetHumiture = (params) => getRequest('/machinemanager/machine/get-humiture', params);
export const stagingGetBelongData = (params) => getRequest('/staging/get-belong-data', params);

export const machineManagerAreaSingleGetTemNum = (params) => getRequest('/machinemanager/area-single/get-tem-num', params);
export const getStateMonitor = (params) => getRequest('/production/technology-settings/state-monitor', params);
export const getCountMonitor = (params) => getRequest('/production/machine-realtime-data/count-monitor', params);
